package com.brainardphotography.blog.dao;

public class EntityNotFoundException extends Exception {
	private static final long serialVersionUID = -6665637646344273301L;

	private Object entityId;

	/**
	 * Entity ID or filter value used to query for entity. 
	 * @return
	 */
	public Object getEntityId() {
		return entityId;
	}

	public EntityNotFoundException(Object id, String message) {
		super(message);

		this.entityId = id;
	}

	public EntityNotFoundException(Object id, String message, Throwable cause) {
		super(message, cause);

		this.entityId = id;
	}
}
